#gaeadapter.py
#to deploy under Google App Engine

import wsgiref.handlers
from wsgiapp import BaseWsgiApp

class MyApp(BaseWsgiApp):
    def index(self):
        self.start_response('200 OK', [('Content-Type', 'text/plain')])
        return ['Hello, World!']

    def greet(self, who = "Nobody"):
        self.start_response('200 OK', [('Content-Type', 'text/plain')])
        return ["Hi, ", who, "!"]

wsgiref.handlers.CGIHandler().run(MyApp())